package cn.gok.homework;

public class Main {
    public static void main(String[] args) {
        Person p1 = new Person("牛马","男",21,false){
            @Override
            public void study(String school) {
                super.study(school);
            }
        };
        Person p2 = new Person("小牛马","女",20,false){
            @Override
            public void study(String school, String time) {
                super.study(school, time);
            }
        };
        if (Person.marryWith(p1,p2)){
            System.out.println("结婚成功");
        }else {
            System.out.println("结婚失败");
        }
        p1.study("泉州职业技术大学");
        p2.study("泉州职业技术大学","3年");
    }
}
